//package com.healthcloud.listener;
//
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
///**
// * Created by 32826 on 2018/5/30.
// */
//@Component
//public class QueueListener {
//
//    @RabbitListener(queues = "mySmart")
//    public void displayTestResult(String message){
//
//        /**
//         * message的数据格式
//         * {"id":109693,"IDCard":"330227198510015258","TestItemCode":"301001","TestItemName":"全量程C反应蛋白","TestItemNameen":"CRP","TestKindCode":"301","TestKindName":"FP100检测","TestKindNameen":"FP100JC","TestTime":"2018-05-31 16:31:20","TestValue":"testResult","TestCh":"1","ValueUnit":"","TestResult":"testResult","ResultKind":0,"TestWarming":"","ProjectBatch":"pro1jectBatch","MKMedicalinstrumentId":"","TestPersonKindId":0,"TestFrom":0,"DataType":"1","PatientIdCard":"330227198510015258","PatientName":"吴杰","PatientPhone":"18957818510","ClinicalDept":"1","CliniainsName":"1","SamplingTime":"1","InspectionDept":"1","InspectorName":"1","SampleNo":"1","ConsultHigh":"1","ConsultLow":"1","TestListId":"20180531330227198510015258","MealType":"1","ConsultResult":"1","ResultLow":"1","ResultHigh":"1","patientAddress":"","patientImage":""}
//         */
//
//        //1、message 转json格式
//        //2、从rest_company中找出对应的公司
//        //3、根据url发动数据
//        //4、数据发送成功后，testresult回写状态is_publish=3
//        //5、数据发送失败后，testresult回写状态is_publish=4
//        System.out.println("队列监听器收到消息=" + message);
//    }
//}
